<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path=request.getScheme()+"://"+request.getServerName()+":"+
	request.getServerPort()+request.getContextPath()+"/";
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE html>
<html>
<head>	
	<base href="<%=this.getServletContext().getContextPath() %>/doctor/">
    <title>修改顾客信息</title>
    <meta charset="UTF-8">
    
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="../Js/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="../Js/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
    <script type="text/javascript">
    $(function () {       
		$('#backid').click(function(){
			window.location.href="${path}customer?method=showCustomerByPage";
		});
		
    });
    </script>
</head>
<body>
<form action="${path }customerServlet.do" method="post" class="definewidth m20">
<input type="hidden" name="cid" value="${customer.cid}"/>
<input type="hidden" name="method" value="updateCustomer"/>
<table class="table table-bordered table-hover definewidth m10">
    <tr>
         <td width="10%" class="tableleft">姓名</td>
        <td><input type="text" name="cname" value="${customer.cname}"/></td>
    </tr>
    
    <tr>
        <td width="10%" class="tableleft">性别</td>
        <td>
           <input type="radio" name="csex" value="男" <c:if test="${customer.csex=='男'}">checked="checked"</c:if> />男&nbsp;&nbsp;
           <input type="radio" name="csex" value="女" <c:if test="${customer.csex=='女'}">checked="checked"</c:if> />女&nbsp;&nbsp;
        	
        </td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">年龄</td>
        <td><input type="text" name="cage" value="${customer.cage}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">电话号码</td>
        <td><input type="text" name="cphone"  value="${customer.cphone}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">邮箱</td>
        <td><input type="text" name="cemail"  value="${customer.cemail}"/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">地址</td>
        <td><input type="text" name="caddress"  value="${customer.caddress}"/></td>
    </tr>
    <tr>
        <td colspan="2">
			<center>
				<input name="save" id="save" type="submit" class="btn btn-primary" value="保存"/> &nbsp;&nbsp;
				<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
			</center>
		</td>
    </tr>
</table>
</form>
</body>
</html>